home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-25 | 1.3 KB | 25 lines | [TEXT/CWIE] |
- /*
- Sample Program - ModifyMouseAccl, demonstrates the use of the CursorDeviceManager
- to adjust the mouse acceleration setting for the standard Apple mouse.
-
- This quick sample obtains the CDM record associated with the standard mouse, saves
- the acceleration settings, then replaces the settings with some custom values
- defined in the program. There is the option to specify a tablet like setting, or
- one which makes the mouse extremely sensitive to movement. Set the define NOACCLCURVE
- to the desired value. A discussion of the acceleration resource is
- provided in the Space Aliens ADB Tech Note.
-
- Once the new values are set, the program makes the CursorDeviceSetAcceleration
- call, to have the Cursor Device Manager calculate the new acceleration curves to
- be used by the cursor draw routine. After waving the mouse around to see that
- the new acceleration curve is in effect, press the mouse button to have the program
- restore the original acceleration settings, and to quit the program.
-
- Note that there is the included glue file CursorDevices.Glue.c. This glue file
- is used in conjunction with the CursorDevices.h header file which became available
- since ETO 18. Use this glue file to link a native PPC program with the
- CursorDevice Manager routines.
-
- Rich Kubota - Developer Technical Support
-
- */